package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.asiainfo.ysrman.doprocess.*;

public final class ub_005fchange_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
 	
    String mobile = "";
    String via = "2";
    String addr = "姓名:邮编:地址:";
    
    if ( session.getAttribute("mobile") != null )
	{	   
	    mobile = session.getAttribute("mobile").toString();	   
	    via = session.getAttribute("muFlag").toString();	
	    addr = new YsrProcess().getUserAddR(mobile);
	}
	else
	{		
		out.println("<script language=\"javaScript\">alert(\"请您登陆后查询,谢谢!\");</script>");
		response.sendRedirect("p_index.jsp");
	}
   

      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>大集兑活动专区-兑奖</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("body,td,th {\r\n");
      out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
      out.write("\tposition: 固定;\r\n");
      out.write("\tborder-top-style: none;\r\n");
      out.write("\tborder-right-style: none;\r\n");
      out.write("\tborder-bottom-style: none;\r\n");
      out.write("\tborder-left-style: none;\r\n");
      out.write("\tbackground-color: none;\r\n");
      out.write("}\r\n");
      out.write("body {\r\n");
      out.write("\tbackground-color: #77b900;\r\n");
      out.write("\tmargin-left: 0px;\r\n");
      out.write("\tmargin-top: 0px;\r\n");
      out.write("\tmargin-right: 0px;\r\n");
      out.write("\tmargin-bottom: 0px;\r\n");
      out.write("}\r\n");
      out.write("a:link {\r\n");
      out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
      out.write("\tfont-size: 13px;\r\n");
      out.write("\tcolor: #FFFFFF;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("a:visited {\r\n");
      out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
      out.write("\tfont-size: 13px;\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("\tcolor: #FFFFFF;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("a:hover {\r\n");
      out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
      out.write("\tfont-size: 13px;\r\n");
      out.write("\tcolor: #FFFFFF;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("a:active {\r\n");
      out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
      out.write("\tfont-size: 13px;\r\n");
      out.write("\tcolor: #FFFFFF;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write(".style2 {\r\n");
      out.write("\tfont-size: 12px;\r\n");
      out.write("\tcolor: #FF0000;\r\n");
      out.write("}\r\n");
      out.write(".style3 {\r\n");
      out.write("\tfont-size: 12px;\r\n");
      out.write("\tcolor: #FFFFFF;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<script language=\"JavaScript\" type=\"text/JavaScript\">\r\n");
      out.write("<!--\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function MM_reloadPage(init) {  //reloads the window if Nav4 resized\r\n");
      out.write("  if (init==true) with (navigator) {if ((appName==\"Netscape\")&&(parseInt(appVersion)==4)) {\r\n");
      out.write("    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}\r\n");
      out.write("  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();\r\n");
      out.write("}\r\n");
      out.write("MM_reloadPage(true);\r\n");
      out.write("//-->\r\n");
      out.write("</script>\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("function trim(str){  //删除左右两端的空格\r\n");
      out.write(" \treturn str.replace(/(^\\s*)|(\\s*$)/g, \"\");\r\n");
      out.write("}\r\n");
      out.write("function changeaward(awardno)\r\n");
      out.write("{ \r\n");
      out.write("\tvar xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\"); \r\n");
      out.write("\tvar URL= \"chaNgeAwaRd.jsp?awardno=\"+awardno;\r\n");
      out.write("\txmlhttp.Open(\"POST\",URL, false);  \r\n");
      out.write("\txmlhttp.Send(); \r\n");
      out.write("\tvar result = xmlhttp.status; \r\n");
      out.write("\t//alert(xmlhttp.responseText);\r\n");
      out.write("\tif(result==200)\t//OK\r\n");
      out.write("\t{ \t\r\n");
      out.write("\t    if(trim(xmlhttp.responseText)=='0')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tdocument.all.info.innerHTML=\"*恭喜您兑奖成功！\";\r\n");
      out.write("\t\t\tdocument.all.inaddr.style.display =\"\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(trim(xmlhttp.responseText)=='2')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tdocument.all.info.innerHTML=\"*恭喜您兑奖成功！IP卡号密码将于近期发送到您的手机。\";\r\n");
      out.write("\t\t\tdocument.all.inaddr.style.display =\"none\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(trim(xmlhttp.responseText)=='3')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tdocument.all.info.innerHTML=\"*恭喜您的奖品是：刘亦菲专辑CD一张。\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t+ \"请填写姓名邮编地址，奖品会在月底统一派送！\";\t\t\t\r\n");
      out.write("\t\t\tdocument.all.inaddr.style.display =\"\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(trim(xmlhttp.responseText)=='1')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tdocument.all.info.innerHTML=\"*网络异常，请稍后兑奖！\";\r\n");
      out.write("\t\t\tdocument.all.inaddr.style.display =\"none\";\r\n");
      out.write("\t\t}\t\t\r\n");
      out.write("\t\tif(trim(xmlhttp.responseText)=='-1')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tdocument.all.info.innerHTML=\"*对不起，您的优币数量不够！\";\r\n");
      out.write("\t\t\tdocument.all.inaddr.style.display =\"none\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(trim(xmlhttp.responseText)=='-2')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tdocument.all.info.innerHTML=\"*对不起，本月您只能兑换一次此奖品！\";\r\n");
      out.write("\t\t\tdocument.all.inaddr.style.display =\"none\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(trim(xmlhttp.responseText)=='-3')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tdocument.all.info.innerHTML=\"*对不起，400张CD奖品已经兑换完，请您选择其他奖品！\";\r\n");
      out.write("\t\t\tdocument.all.inaddr.style.display =\"none\";\r\n");
      out.write("\t\t}\t\r\n");
      out.write("\t}\r\n");
      out.write("\telse\r\n");
      out.write("\t{\r\n");
      out.write("\t\talert(\"数据通讯失败，请稍后重新操作。\");\r\n");
      out.write("\t}\r\n");
      out.write("\txmlhttp = null; \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function inputuseraddr()\r\n");
      out.write("{ \r\n");
      out.write("\tvar xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\"); \r\n");
      out.write("\tvar URL= \"inPutUseRadDr.jsp?addr=\"+document.all.useraddr.value;\r\n");
      out.write("\txmlhttp.Open(\"POST\",URL, false);  \r\n");
      out.write("\txmlhttp.Send(); \r\n");
      out.write("\tvar result = xmlhttp.status; \r\n");
      out.write("\t//alert(document.all.useraddr.value);\r\n");
      out.write("\tif(result==200)\t//OK\r\n");
      out.write("\t{ \t\r\n");
      out.write("\t   //alert(\"通讯地址提交成功！\");\r\n");
      out.write("\t   document.all.info.innerHTML=\"*通讯地址提交成功！\";\r\n");
      out.write("\t   document.all.inaddr.style.display =\"none\";\r\n");
      out.write("\t}\r\n");
      out.write("\telse\r\n");
      out.write("\t{\r\n");
      out.write("\t\talert(\"数据通讯失败，请稍后重新操作。\");\r\n");
      out.write("\t}\r\n");
      out.write("\txmlhttp = null; \r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"800\" height=\"55\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/top1.jpg\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<script type=\"text/javascript\" src=\"http://ad.argusclick.net/?qm\"></script>\r\n");
      out.write("<table width=\"800\" height=\"55\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/top2.jpg\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("  <script type=\"text/javascript\">\r\n");
      out.write("var _pid = '00000004';\r\n");
      out.write("_argusTracker();\r\n");
      out.write("  </script>\r\n");
      out.write("  <table width=\"800\" height=\"55\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td background=\"images/top3.jpg\">&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("<!--Adsunion AD Code Begin Here. AD Place:pl-5-f1-topcolumn-->\r\n");
      out.write("<SCRIPT>\r\n");
      out.write("document.write(navigator.userAgent.indexOf('MSIE')==-1?\"<SCRIPT src='http://boosen.adsunion.com:80/adsunion/get/;pl=pl-5-f1-topcolumn;tp=js;sk=0;ck=0;/?'><\\/SCRIPT>\":\"<IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 BORDER=0 VSPACE=0 WIDTH=0 NORESIZE HEIGHT=0 SCROLLING=NO SRC='http://boosen.adsunion.com:80/adsunion/get/;pl=pl-5-f1-topcolumn;tp=if;sk=0;ck=0;/?'></IFRAME>\");\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("<table width=\"800\" height=\"77\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/top4.jpg\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"29\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td valign=\"middle\" background=\"images/top5.jpg\"><table width=\"800\" height=\"15\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"17\">&nbsp;</td>\r\n");
      out.write("        <td width=\"783\"><span class=\"style3\">您现在的位置 &gt; 大集兑活动专区</span> </td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"800\" height=\"11\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/top6.jpg\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"107\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"426\" background=\"images/cx1.jpg\">&nbsp;</td>\r\n");
      out.write("    <td width=\"374\"><img src=\"images/dj1.jpg\" width=\"374\" height=\"107\" border=\"0\" usemap=\"#Map\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"62\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/dj2.jpg\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"48\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/dj3.jpg\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"27\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"294\" background=\"images/dj5.jpg\">&nbsp;</td>\r\n");
      out.write("    <td width=\"120\" valign=\"middle\" background=\"images/dj6.jpg\"><table width=\"120\" height=\"17\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\" valign=\"bottom\" background=\"images/dj7.jpg\"><span class=\"style2\">30元联通全球IP卡</span></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("    <td width=\"386\"><img src=\"images/dj8.jpg\" width=\"386\" height=\"27\" border=\"0\" usemap=\"#Map3\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"19\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/dj9.jpg\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"28\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"294\" background=\"images/dj10.jpg\">&nbsp;</td>\r\n");
      out.write("    <td width=\"120\" valign=\"middle\" background=\"images/dj11.jpg\">\r\n");
      out.write("    <table width=\"120\" height=\"17\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\" valign=\"bottom\" background=\"images/dj7.jpg\"><span class=\"style2\">刘亦菲签名专辑CD</span></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("    <td width=\"356\"><img src=\"images/dj12.jpg\" width=\"386\" height=\"28\" border=\"0\" usemap=\"#Map4\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"47\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td background=\"images/dj13.jpg\">&nbsp;\r\n");
      out.write("    <span id=\"info\" class=\"style2\" style=\"padding-left:230px;\"></span>\r\n");
      out.write("    <div id=\"inaddr\" name=\"inaddr\" style=\"padding-left:230px;display:none;\">\r\n");
      out.write("    <input name=\"useraddr\" size=\"30\" maxlength=\"150\" value=\"");
      out.print(addr );
      out.write("\" type=\"text\">\r\n");
      out.write("    <a href=\"###\" onclick=\"return inputuseraddr();\"><img src=\"images/queding.jpg\" border=\"0\"></a>\r\n");
      out.write("    </div>\r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"800\" height=\"133\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"294\" background=\"images/dj14.jpg\">&nbsp;</td>\r\n");
      out.write("    <td width=\"321\" background=\"images/dj15.jpg\">&nbsp;</td>\r\n");
      out.write("    <td width=\"185\"><img src=\"images/dj16.jpg\" width=\"185\" height=\"133\" border=\"0\" usemap=\"#Map2\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<p>&nbsp; </p>\r\n");
      out.write("\r\n");
      out.write("<map name=\"Map\">\r\n");
      out.write("<area shape=\"circle\" coords=\"59,62,31\" href=\"ub.jsp\">\r\n");
      out.write("<area shape=\"circle\" coords=\"170,62,31\" href=\"ub_list.jsp\">\r\n");
      out.write("<area shape=\"circle\" coords=\"277,62,31\" href=\"ub_change.jsp\">\r\n");
      out.write("</map>\r\n");
      out.write("<map name=\"Map2\"><area shape=\"rect\" coords=\"6,9,150,107\" href=\"http://ent.sina.com.cn/f/y/youmusic/index.shtml\" target=\"_blank\">\r\n");
      out.write("</map>\r\n");
      out.write("<map name=\"Map3\"><area shape=\"rect\" coords=\"29,2,93,24\" href=\"javascript:changeaward(2);\"></map>\r\n");
      out.write("<map name=\"Map4\"><area shape=\"rect\" coords=\"29,2,94,27\" href=\"javascript:changeaward(3);\"></map></body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t \r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
